package com.yellowpage.bigdata.data;

import javax.persistence.*;
import java.sql.Date;

/**
 * Created by mac on 15/12/7.
 */
@Entity
@Table(name = "nsp_fatallog_huawei_daynum_hot", schema = "", catalog = "omc")
public class NspFatallogHuaweiDaynumHotEntity {
    private int fatallogHuaweiDaynumHotId;
    private String logDate;
    private String subjectNum;
    private int hot;
    private Integer isValue;
    private Integer createUser;
    private Date createTime;

    @Id
    @Column(name = "FATALLOG_HUAWEI_DAYNUM_HOT_ID")
    public int getFatallogHuaweiDaynumHotId() {
        return fatallogHuaweiDaynumHotId;
    }

    public void setFatallogHuaweiDaynumHotId(int fatallogHuaweiDaynumHotId) {
        this.fatallogHuaweiDaynumHotId = fatallogHuaweiDaynumHotId;
    }

    @Basic
    @Column(name = "LOG_DATE")
    public String getLogDate() {
        return logDate;
    }

    public void setLogDate(String logDate) {
        this.logDate = logDate;
    }

    @Basic
    @Column(name = "SUBJECT_NUM")
    public String getSubjectNum() {
        return subjectNum;
    }

    public void setSubjectNum(String subjectNum) {
        this.subjectNum = subjectNum;
    }

    @Basic
    @Column(name = "HOT")
    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

    @Basic
    @Column(name = "IS_VALUE")
    public Integer getIsValue() {
        return isValue;
    }

    public void setIsValue(Integer isValue) {
        this.isValue = isValue;
    }

    @Basic
    @Column(name = "CREATE_USER")
    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NspFatallogHuaweiDaynumHotEntity that = (NspFatallogHuaweiDaynumHotEntity) o;

        if (fatallogHuaweiDaynumHotId != that.fatallogHuaweiDaynumHotId) return false;
        if (logDate != null ? !logDate.equals(that.logDate) : that.logDate != null) return false;
        if (subjectNum != null ? !subjectNum.equals(that.subjectNum) : that.subjectNum != null) return false;
        if (hot != that.hot) return false;
        if (isValue != null ? !isValue.equals(that.isValue) : that.isValue != null) return false;
        if (createUser != null ? !createUser.equals(that.createUser) : that.createUser != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = fatallogHuaweiDaynumHotId;
        result = 31 * result + (logDate != null ? logDate.hashCode() : 0);
        result = 31 * result + (subjectNum != null ? subjectNum.hashCode() : 0);
        result = 31 * result + hot;
        result = 31 * result + (isValue != null ? isValue.hashCode() : 0);
        result = 31 * result + (createUser != null ? createUser.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        return result;
    }
}
